SQL::InsertStatementValidate Method
Syntax
Arguments
- Result_Flag
TRUE (.T.) if the operation was successful; otherwise FALSE (.F.). g
- SQL::InsertStatement
A SQL::InsertStatement object.
- SQLConnection
Optional. A SQL::Connection object with a defined .ConnectionString property.
- SQLConnectionString
Optional. A connection string.
Description
Execute the current statement using the current or passed connection.
Discussion
The .Validate() method prepares the query and validates it, but does not execute it. (In some implementations the query is executed with a limit on rows set to 1). The intent is to force the query through a server side parse and report problems. The method connects to the back-end database using the information in the SQL::Connection::ConnectionString property or in the ConnectString string, then executes the current SQL statement stored in the SQL::InsertStatement.SQLStatement property. Note: Not every database is thorough about validation.
See Also